(function () {
    'use strict';

            angular.module('cf-content.filter')
            

            .filter('AuthFilter', function () {
                return function (input) {
                    var timestamp=(new Date()).getTime();
                    var qiniupath = "http://7xrjgr.com1.z0.glb.clouddn.com/";
                    qiniupath = qiniupath + input+"?time="+timestamp;
                    return qiniupath;
                }
            })


            .filter('DataFilter',function(){
                return function(input,params){
                    var date=new Date(input),
                        month=(date.getMonth()+1)>9?(date.getMonth()+1):'0'+(date.getMonth()+1),
                        day=(date.getDate())>9?(date.getDate()):'0'+(date.getDate());
                    return (date.getFullYear())+'.'+month+'.'+day;
                }
            })

            .filter('StateFilter',function(){
                return function(input,params){
                    input=parseInt(input)
                    return input==1?'已通过':input==0?'审核中':'不通过';
                }
            })

})();


